package com.zmy.xcx.dao.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;
import org.springframework.lang.Nullable;

/**
 * 中国糖尿病风险评分DTO
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("hyperglycemia_risk_score")
public class HyperglycemiaRiskScoreDO {

    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("openid")
    @NonNull
    private String openid;

    @TableField("age")
    @NonNull
    private Integer age;

    @TableField("height")
    @Nullable
    private Double height;

    @TableField("weight")
    @Nullable
    private Double weight;

    @TableField("waistline")
    @Nullable
    private Double waistline;

    @TableField("systolic_blood_pressure")
    @Nullable
    private Double systolicBloodPressure;

    @TableField("gender")
    @Nullable
    private String gender;

    @TableField("risk_score_info")
    private String riskScoreInfo;

    @TableField("total_score")
    private Integer totalScore;

    @TableField("high_risk_indication")
    private String highRiskIndication;

}
